package org.jason.model.interaction.es;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Document(indexName = "article_comment")
@ApiModel(value = "UserFollow对象", description = "用户关注索引")
public class UserFollow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "索引id")
    @Id
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @Field(type = FieldType.Keyword)
    private Integer userId;

    @ApiModelProperty(value = "关注的用户id")
    @Field(type = FieldType.Keyword)
    private Integer followUserId;
}
